package com.ranjiaqi.file;

import java.io.File;

/**
 * @ClassName TestGetName
 * @Description TODO
 * @Author hp
 * @Date 2021/7/1 9:35
 * @Version 1.0
 **/
public class TestGetName {
    public static void main(String[] args) {
        File file = new File("F:/java/day_01");
        String name = file.getName();
        System.out.println("name = " + name);
    }
}
